import logging
import yagmail
def log():
    logging.basicConfig(level=logging.DEBUG,format='%(levelname)s_%(asctime)s_%(message)s',filename='log.txt')
def mail(a):
    mm=yagmail.SMTP(user='1244547969@qq.com',password='ecbjoiwyomucjhic',host='smtp.qq.com')
    mm.send(to='1244547969@qq.com',subject='测试报告10.13',contents='这是测试报告',attachments=a)